﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VirtualTournaments.Business.Tournaments;
using System.Collections;


namespace VirtualTournaments.Business.Bets
{
	public class Podium : IComparable
	{
		public virtual Team First { get; protected set; }
		public virtual Team Second { get; protected set; }
		public virtual Team Third { get; protected set; }

		public Podium(Team first, Team second, Team third)
		{
			this.First = first;
			this.Second = second;
			this.Third = third;

		}



		#region IComparable Members

		public int CompareTo(object obj)
		{

			if (
				((Podium)obj).First == this.First &&
				((Podium)obj).Second == this.Second &&
				((Podium)obj).Third == this.Third) return 0;
			else return 1;
		}

		#endregion


	}
}
